package day12.edu;

// Created: 12/09/2025, ChangJiang Ru
public class EventNumberTest {
    public static void main(String[] args)
    {
        PrintNumber p1 = new PrintNumber();
        PrintNumber p2 = new PrintNumber();
        p2.start();
        p1.start();

        for (int i = 0; i <= 100; i++) {
            System.out.println(Thread.currentThread().getName() + i + "---------");
        }
    }
}

class PrintNumber extends Thread
{
    @Override
    public void run()
    {
        for (int i = 0; i <= 100; i++) {
            if(i % 2 == 0)
                System.out.println(Thread.currentThread().getName() + i + "=======");
        }
    }
}
